import java.util.*;

/**
 * @author LKQ
 * @date 2022/3/9 17:19
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int minSteps(String s, String t) {
        int[] cnt = new int[26];
        for(char ch: s.toCharArray()) {
            cnt[ch-'a']++;
        }
        for(char ch: t.toCharArray()) {
            cnt[ch-'a']--;
        }
        int ans = 0;
        for (int i:cnt) {
            ans += Math.abs(i);
        }
        return ans;
    }
}
